#ifndef WF_MODIFYMIRROR_H
#define WF_MODIFYMIRROR_H

#include "pf_previewactioninterface.h"
#include "pf_modification.h"
#include "gui_export.h"

/**
 * This action class can handle user events to mirror entities.
 *
 */
class GUI_EXPORT WF_ModifyMirror : public PF_PreviewActionInterface {
	Q_OBJECT
public:
    /**
     * Action States.
     */
    enum Status {
        SetAxisPoint1,    /**< Setting the 1st point of the axis. */
        SetAxisPoint2,    /**< Setting the 2nd point of the axis. */
        ShowDialog        /**< Showing the options dialog. */
    };

public:
    WF_ModifyMirror(PF_Container& container,
                        PF_GraphicView& graphicView);
    ~WF_ModifyMirror() {}
	
	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);
    virtual void trigger();
	virtual void coordinateEvent(PF_CoordinateEvent* e);
    virtual void mouseMoveEvent(PF_MouseEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
    virtual void updateMouseButtonHints();
    virtual void updateMouseCursor();
    virtual void updateToolBar();

private:
    PF_MirrorAttribute data;
    PF_Vector axisPoint1;
    PF_Vector axisPoint2;
};

#endif
